<?php
/**
 * Created by PhpStorm.
 * Script Name: common.php
 * Create: 2023/5/23 16:57
 * Description:
 * Author: fudaoji<fdj@kuryun.cn>
 */

//应用中引入三方composer包
require_once "vendor/autoload.php";

if(! function_exists('demo_hello')){
    /**
     * 演示应用中调用composer包类库
     * @return string
     * Author: fudaoji<fdj@kuryun.cn>
     */
    function demo_hello(){
        $hello = new Rivsen\Demo\Hello();
        return $hello->hello();
    }
}
